package com.dty.model.base;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@ApiModel("评论实体类")
public class ClickComment implements Serializable {
    @ApiModelProperty(value = "评论Id")
    private Long  id ;
    @ApiModelProperty(value = "评论内容")
    private String commentText;
    @ApiModelProperty(value = "栏目id")
    private Integer columnId;
    @ApiModelProperty(value = "一级评论")
    private  Integer parentId;

    @ApiModelProperty(value = "用户名")
    private  String userName;
    @ApiModelProperty(value = "用户头像")
    private  String userImage;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @ApiModelProperty(value = "状态  1展示  0不展示")
    private Integer status;
    @ApiModelProperty(value = "子评论")
    List<ClickComment> children;

}
